using System;
using System.Windows.Markup;

namespace ChessKit.Common
{
  public class TopEdgeExtension : MarkupExtension
  {
    public int X { get; set; }

    public TopEdgeExtension()
    {
    }

    public TopEdgeExtension(int x)
    {
      X = x;
    }

    public override object ProvideValue(IServiceProvider serviceProvider)
    {
      return BoardLocation.TopEdge(X);
    }
  }
}